package bd.com.escenic.flexilunch.model;

/**
 * $URL: http://flexilunch.googlecode.com/svn/trunk/common/src/main/java/bd/com/escenic/flexilunch/model/PermissionImpl.java $
 * $Id: PermissionImpl.java 14 2009-06-03 09:39:19Z shihab.uddin@gmail.com $
 * $Date: 2009-06-03 09:39:19 +0000 (Wed, 03 Jun 2009) $
 * $Author: shihab.uddin@gmail.com $
 * $Revision: 14 $
 */

/**
 * $Id: PermissionImpl.java 14 2009-06-03 09:39:19Z shihab.uddin@gmail.com $.
 *
 * @author <a href="mailto:shihab.uddin@gmail.com">Shihab Uddin</a>
 * @version $Revision: 14 $
 */
public class PermissionImpl extends AbstractEntity implements Permission {

  private Type mEntity;
  private Operation mOperation;
  private boolean mOnlyPersonal;

  /**
   * {@inheritDoc}
   */
  @Override
  public final Type getType() {
    return Type.PERMISSION;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public Type getEntity() {
    return mEntity;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setEntity(final Type pEntity) {
    mEntity = pEntity;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public Operation getOperation() {
    return mOperation;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setOperation(final Operation pOperation) {
    mOperation = pOperation;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public boolean isOnlyPersonal() {
    return mOnlyPersonal;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setOnlyPersonal(final boolean pOnlyPersonal) {
    mOnlyPersonal = pOnlyPersonal;
  }
}
